<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="row">
                            <form class="form-inline" action="" method="get">
                                <label class="inline">商家名称：</label>
                                <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                                    Search
                                </button>
								
								<button type="button" class="btn btn-purple btn-sm" onclick="javascript:location.href='{:U('PaySetting/add')}'">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                                    增加支付方式
                                </button>
                            </form>
                        </div>
                        <div class="space-4"></div>
                        <div class="row">
                            <form id="form" method="post" action="{:U('del')}">
                                <table class="table table-striped table-bordered table-hover" id="simple-table">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th width="30%;">名称</th>
                                        <th>类型</th>
                                        <th>状态</th>
                                        <th>备注</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="lists" id="val">
                                        <tr>
                                            <td>{$val['id']}</td>
                                            <td>{$val.title}</td>
                                            <td>
											<switch name="val.type">
												<case value="1">支付宝</case>
												<case value="2">微信</case>
											</switch>
											</td>
                                            <td>
												<input name="islink" id="islink" <eq name="val.status" value="1">checked</eq> value="1" class="ace ace-switch ace-switch-2" type="checkbox" />
												<span class="lbl"></span>
											</td>
											<td>{$val['note']}</td>
                                            <td>{:date('Y-m-d',$val['create_time'])}</td>
                                            <td>
												<a href="{:U('PaySetting/save',array('id' => $val['id']))}">修改</a> | 
												<a href="{:U('PaySetting/del',array('id' => $val['id']))}" menu="tip_menu" request_type="ajax" title="确定要删除这个支付方式吗？">删除</a>
											</td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </form>
                        </div>
						{$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
</body>
</html>
